public class Test03{
    public static void main(String[] args){
        int[] a = {1,2,3,4};
        int[] b = {5,6};
        int c = 10;
        get_sum(c,a);
    }
    public static void get_sum(int... a){
        int sum = 0;
        for(int i = 0; i < a.length; i++){
            sum += a[i];
        }
        System.out.println(sum);
    }
}